package demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication
@EnableHystrixDashboard
@EnableEurekaClient
public class HystrixApplication implements CommandLineRunner{

    @Value("${hello}")
    private String hello;
    public static void main(String[] args) {
        SpringApplication.run(HystrixApplication.class, args);
    }
    
    @Override
    public void run(final String... strings) throws Exception {
        System.out.println(hello);
    }
}
